home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / i_am_leg.swf / scripts / frame_408 / DoAction.as
Encoding:
Text File  |  2010-04-12  |  1.1 KB  |  61 lines

  1. function bg_sd(n)
  2. {
  3.    bg_sound = new Sound(this);
  4.    bg_sound.attachSound("bg_sd" + n);
  5.    bg_sound.setVolume(100);
  6.    bg_sound.start(0,999);
  7. }
  8. function end_bg_sd()
  9. {
  10.    bg_sound.stop();
  11. }
  12. function luodi_sd()
  13. {
  14.    pz_sound = new Sound(this);
  15.    pz_sound.attachSound("luodi");
  16.    pz_sound.setVolume(100);
  17.    pz_sound.start();
  18. }
  19. function qitiao_sd()
  20. {
  21.    body_sound = new Sound(this);
  22.    body_sound.attachSound("qitiao");
  23.    body_sound.setVolume(100);
  24.    body_sound.start();
  25. }
  26. function end_body_sd()
  27. {
  28.    body_sound.stop();
  29. }
  30. function cj_sd()
  31. {
  32.    cj_sound = new Sound(this);
  33.    cj_sound.attachSound("cj_sd");
  34.    cj_sound.setVolume(100);
  35.    cj_sound.start();
  36. }
  37. function data_start()
  38. {
  39.    level = 1;
  40.    var _loc2_ = 0;
  41.    while(_loc2_ < 9)
  42.    {
  43.       removeMovieClip(this["text_co_mc" + (_loc2_ + 1)]);
  44.       removeMovieClip(this["text_id_mc" + (_loc2_ + 1)]);
  45.       _loc2_ = _loc2_ + 1;
  46.    }
  47. }
  48. stop();
  49. begin_btn.onRelease = function()
  50. {
  51.    gotoAndStop(410);
  52. };
  53. help_btn.onRelease = function()
  54. {
  55.    gotoAndStop(409);
  56. };
  57. end_bg_sd();
  58. bg_sd(1);
  59. clearInterval(intervalTime);
  60. data_start();
  61.